package com.relman.business {
    import mx.rpc.IResponder;
    import com.relman.vo.UserVO;
    import com.relman.util.ServiceUtils;
    import com.relman.util.DebugUtils;

    public class UserDelegate {
        private var _responder : IResponder;
        
        public function UserDelegate(responder : IResponder) {
            _responder = responder;
        }
        
        public function login(data : Object) : void {
            var params : Object = new Object();
            params['username'] = data['username'];
            params['password'] = data['password'];
            params['_method'] = "POST";
            ServiceUtils.send(
                "/login/login_xml",
                _responder,
                params);
        }
    }
}
